<template>
  <div>
    <h2>World xxx</h2>
    <p>当前鼠标点击的位置 X: {{ x }} Y: {{ y }}</p>
  </div>
</template>

<script>
import { useMouse } from "../hooks/useMouse";

export default {
  setup() {
    const { x, y } = useMouse();

    return {
      x,
      y,
    };
  },
};
</script>
